const api = {
	login: 'auth/login',
	homeDatas: 'home/datas',
	category: 'product/category',
	product: {
		commentStat: 'product/comments_statistic'
	},
	promotion: {
		list: 'promotion/activities'
	},
	productQuery: 'product/query',
	productDetail: 'product/detail',
	productComments: 'product/comments',
	promotionDetail: 'promotion/query',
	searchHistory: 'productsearch/history',
	searchPopular: 'productsearch/popular',
	searchResult: 'productsearch/result',
	areaAll: 'area/all',
	coupon: {
		list: 'coupon/list',
		detail: 'coupon/detail',
		store: 'coupon/store',
		query: 'coupon/query',
		collect: 'coupon/collect'
	},
	user: {
		isLogin: 'user/islogin',
		login: 'user/auth',
		loginByWx: 'user/auth_weixin',
		my: 'user/my',
		edit: 'user/edit',
		addressList: 'user/address/list',
		addressDetail: 'user/address/detail',
		addressAdd: 'user/address/add',
		addressRemove: 'user/address/remove',
		uploadHeader: 'https://core.jucheap.com/api/file/upload_image'
	},
	cart: {
		list: 'cart/list',
		add: 'cart/add',
		change: 'cart/change_number',
		select: 'cart/select',
		selectAll: 'cart/select_all',
		delete: 'cart/delete_product'
	},
	order: {
		my: 'order/my',
		create: 'order/create',
		detail: 'order/detail',
		settlement: 'order/settlement',
		cancel: 'order/cancel',
		confirm: 'order/confirm',
		comment: 'comment/save',
		invoice: 'order/invoice'
	}
}
export {
	api
}